﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Rio.Framework.Pages.Context;

namespace Rio.Framework.Pages.AppCode.Helpers
{
    public static class DateStringFormatterHelper
    {
        /// <summary>
        /// Gets the date string formatter.
        /// </summary>
        /// <returns></returns>
        public static string GetDateStringFormatter()
        {
            switch (GlobalWebContext.Culture)
            {
                case "en-US":
                    return "{0:dd/MM/yyyy}";
                case "zh-CN":
                    return "{0:yyyy/MM/dd}";
                default:
                    return "{0:dd/MM/yyyy}";
            }
        }
    }
}
